package im.zhihao.zhdisk.module.user.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
@ApiModel(description = "用户修改密码请求参数类")
public class UpdateUserPasswordRequest {

    @ApiModelProperty(value = "用户编号", required = true, example = "admin")
    @NotNull(message = "用户编号不能为空")
    private Integer id;

    @ApiModelProperty(value = "密码", required = true, example = "123456")
    @Size(min = 6,message = "密码长度不得低于6位")
    private String password;
}
